package cn.cxj.order.controller;

import cn.cxj.basic.util.AjaxResult;
import cn.cxj.order.service.IOrderCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/orderCount")
public class OrderCountController {

    @Autowired
    private IOrderCountService orderCountService;

    @GetMapping
    public AjaxResult orderCount(){
        Long[] arr = orderCountService.queryOrderCount();
        return AjaxResult.me().setResultObj(arr);
    }
}
